Induction: Prove for the first case, prove that if true for some case, must be true for next case
First case is base step
Next step is the inductive step, assume the inductive hypothesis (works up to some k) holds.
Example 2.1
Show that 1+2+3+⋯+n=2n(n+1)
We first show the base step. When n=1, 1=21(2)=1, so the statement holds.
Suppose 1+2+⋯+k=2k(k+1) (inductive hypothesis). Then 1+2+⋯+k+k+1=2k(k+1)+k+1=2k(k+1)+2(k+1)=2k2+3k+2=2(k+1)(k+2)=2(k+1)(k+1+1)Ttherefore it is also true. Thus, 1+2+3+⋯+n=2n(n+1) for all natural numbers n. ■
Contradiction: show something is false to prove that the opposite must be true
Assume the opposite, show how that leads to a contradiction, then conclude that the original assumption must be false, so the opposite is true.
Example 2.2
Prove there are infinitely many primes
Suppose there are a finitely many primes p1,p2,...,pk. Consider the number p1p2...pk+1. None of the primes divide this number, as it leaves a remainder of 1, however, every number is the product of primes. That is a contradiction, meaning that the initial proposition that there are finitely many primes must be false. Therefore, there must be infinitely many primes. ■
Logic Operators and Set Notation
Use the following symbols for logic expressions and the respective set notation
def.
logic
set
or
∨
∪
and
∧
∩
not
¬
Ac
Proofs can be conducted with logical operators or using truth tables
Example 2.3
P
Q
P∨Q
P∧Q
¬P
¬(P∨Q)
(¬P)∧(¬Q)
T
T
T
T
F
F
F
T
F
T
F
F
F
F
F
T
T
F
T
F
F
F
F
F
F
T
T
T
Example 2.4
Show that ¬(P∨Q)≡¬P∧¬Q
The left is true if both P and Q are false. The right is true is P is false and Q is false. Clearly, they are equivalent.
Show that ¬(P∧Q)=¬P∨¬Q
¬(P∧Q)=¬(¬(¬P∨¬Q))=¬¬(¬P∨¬Q)=¬P∨¬Q
The expression P⟹Q (P implies Q) can be expressed as a truth table as follows
P
Q
P⟹Q
T
T
T
T
F
F
F
T
T
F
F
T
If P is true, then Q is implied to be true, so Q cannot be false.
If P is false, then Q could be either true or false.
So, P⟹Q≡¬P∨Q
Contrapositive: to prove P⟹Q, instead prove the equivalent ¬Q⟹¬P
Proof
Show that P⟹Q≡¬Q⟹¬P
P⟹Q≡¬P∨Q≡Q∨¬P≡¬(¬Q)∨¬P≡¬Q⟹¬P
Similarly, P⟺Q (if and only if) is expressed
P
Q
P⟺Q
T
T
T
T
F
F
F
T
F
F
F
T
and proven when (P⟹Q∧Q⟹P) or (P⟹Q∧¬P⟹¬Q) or (P∧Q)∨(¬P∧¬Q)
Logic operators are interchangeable with set notation:
(A∨B)∧C≡(A∧C)∨(B∧C)↔(A∪B)∩C=(A∩C)∪(B∩C)
Logic Proof
For the left hand side to be true, C must be true, as well as either A or B. Looking at the right side, either A∧C or B∧C must be true. In either case, C must be true. Then, if one of either A or B is true, one of those statements will be satisfied.
Set Proof
We must show (A∪B)∩C⊆(A∩C)∪(B∩C) and (A∩C)∪(B∩C)⊆(A∪B)∩C
For the first, suppose x∈(A∪B)∩C. This means x∈C, and x∈A or x∈B. In other words, x∈C and x∈A, or x∈C and x∈B, which can be represented as (A∩C)∪(B∩C), so (A∪B)∩C⊆(A∩C)∪(B∩C).
Next, suppose x∈(A∩C)∪(B∩C). Then x∈C regardless, and x∈A or x∈B, so x∈C∩(A∪B)
Since both sets are subsets of each other, (a∪B)∩C=(A∩C)∪(B∪C)
Homogeneous Linear Systems
Homogeneous linear systems have a constant of 0
One solution is 0
turn constants 0 to get the associated homogeneous system
There always exists vectors β1,...,βk such that the solution set is {c1β1+⋯+ckβk∣c1,...,ck∈R}
where k is the number of free variables and cn are the free variables. (Proof by induction on each row in echelon form)
Example solution set⎩⎪⎪⎪⎨⎪⎪⎪⎧z⎝⎜⎜⎜⎛−2110⎠⎟⎟⎟⎞+w⎝⎜⎜⎜⎛0−101⎠⎟⎟⎟⎞∣∣∣∣∣∣∣∣∣z,w∈R⎭⎪⎪⎪⎬⎪⎪⎪⎫
Solution to a General Linear System
If a linear system has a particular solution p and its associated homogeneous system has a solution h, the solution set S={p+h}
Proof
First show S⊆{p+h} set.
Take another solution vector s∈S. Look at s−p and plug into the i-th equation. ai,1(s1−p1)+⋯+ai,n(sn−pn)=di−di=0
Therefore, s−p=h, or s=p+h, meaning S⊆{p+h}.
Next show p+h⊆S.
Plugging into the i-th equation, ai,1(p1+h1)+⋯+ai,n(pn+hn)=di+0=di
Therefore, p+h solves the system, so {p+h}⊆S.
Since each are subsets of each other, by the Principle of Extensionality, S={p+h}.
Theorem: Every linear system has solutions of the form {p+h}={p+c1β1+⋯+ckβk∣c1,...,ck∈R}
singular square matrix describes a homogeneous system of equation with infinitely many solutions nonsingular square matrix describes a homogeneous system of equation with one solution
Example 2.5
A line in Rn can be represented by the set L={p+tv∣t∈R}
What is the set representation for the line going through (1,1,1) and (2,3,4) in R3?
The particular solution can be either of the two points. Choose (1,1,1). The vector from (1,1,1) to (2,3,4) shows the direction, i.e. (1,2,3)
The line is L=⎩⎪⎨⎪⎧⎝⎜⎛111⎠⎟⎞+t⎝⎜⎛123⎠⎟⎞∣∣∣∣∣∣∣t∈R⎭⎪⎬⎪⎫
What is the system for which this is the solution to?
Express this as ⎝⎜⎛xyz⎠⎟⎞=⎝⎜⎛111⎠⎟⎞+t⎝⎜⎛123⎠⎟⎞→⎝⎜⎛x−1y−1z−1⎠⎟⎞=t⎝⎜⎛123⎠⎟⎞
We want to eliminate t to get the system of equations. This can be done by row-reducing ⎝⎜⎛123x−1y−1z−1⎠⎟⎞∼⎝⎜⎛100x−1y−1−2(x−1)z−1−3(x−1)⎠⎟⎞
The bottom two equations have no t term, so those are used.
The system is −2x+y+1=0−3x+z+2=0⟶2x−y=13x−z=2
Example 2.6
A plane in Rn can be represented by the set P={p+tv+sw∣t,s∈R}
Find the set for the plane going through (1,1,1), (2,1,2) and (−1,−1,−3)
The particular solution can be any of these; choose p=(1,1,1)
The vector from (1,1,1) to (2,1,2) is (1,0,1) and the vector from (1,1,1) to (−1,−1,−3) is (−2,−2,−4), so the set is P=⎩⎪⎨⎪⎧⎝⎜⎛111⎠⎟⎞+t⎝⎜⎛101⎠⎟⎞+s⎝⎜⎛−2−2−4⎠⎟⎞∣∣∣∣∣∣∣t,s∈R⎭⎪⎬⎪⎫
What is the equation of the plane represented by P?
We want to eliminate t and s from the equation.
Since there are 3 total variables and 2 free variables, there will be 1 equation.
Express P as ⎝⎜⎛101−2−2−4x−1y−1z−1⎠⎟⎞
and row reduce ⎝⎜⎛101−2−2−4x−1y−1z−1⎠⎟⎞−ρ1−ρ2+ρ3⎝⎜⎛100−2−20x−1y−1z−1−(y−1)−(x−1)⎠⎟⎞
The bottom equation has 0=z−1−(y−1)−(x−1), which simplifies to the equation x+y−z−1=0
To check notice that all three of the original vectors satisfy this equation.